﻿using WebLayer;
using System;
using System.Net;
using System.Diagnostics;
using System.IO;
using WebParser;
using TableTypes;
using Speakup;
using System.Runtime.Serialization.Formatters.Binary;
using System.Runtime.Serialization;

class Program
{
    static void Main(string[] args)
    {
        /* 
         * LoginToken loginToken = new LoginToken("2448","6181","4001");
         * ClassList list = ClassList.Fetch(loginToken);
         */
        
        /*IFormatter formatter = new BinaryFormatter();
        using( FileStream s = File.Create("serialized.bin"))
        {
            formatter.Serialize(s, list);
        }*/

        IFormatter formatter = new BinaryFormatter();
        ClassList list;
        using( FileStream s = File.OpenRead("serialized.bin"))
        {
            list = (ClassList)formatter.Deserialize(s);
        }
    }
}

